<%--
  Created by IntelliJ IDEA.
  User: 26383
  Date: 2020/12/15
  Time: 13:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<%--头部导航--%>
<div class="layui-header">
    <div class="layui-logo" style="font-size: 25px;color:#007DDB">KnowNews</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->

    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
            <a href="javascript:;">
               ${sessionScope.user.username}
            </a>
            <dl class="layui-nav-child">
                <dd><a href="<%=basePath%>/admin/showAdmininfo.jsp">基本资料</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item"><a href="/Logout">退了</a></li>
    </ul>
</div>

